 
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:c="clr-namespace:Tum.VModellXT.ViewModel"
					xmlns:view="clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"
					xmlns:diagrams="clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls.DiagramSurface;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"
					xmlns:dependencies="clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Controls.Dependencies;assembly=Tum.PDE.ToolFramework.Modeling.Visualization"
					xmlns:inter="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                    xmlns:beh="clr-namespace:Tum.PDE.ToolFramework.Modeling.Visualization.Behaviors;assembly=Tum.PDE.ToolFramework.Modeling.Visualization">
<!-- 	
	This code was generated by a tool.
	
	Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.	
-->
	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="/Tum.PDE.ToolFramework.Modeling.Visualization;component/Themes/Generic.xaml"/>
	
	</ResourceDictionary.MergedDictionaries>

	<!-- Model tree template -->
    <DataTemplate DataType="{x:Type c:VModellXTModelTreeViewModel}">
        <view:ModelTreeControl x:Name="ModelTreeviewControl"/>
    </DataTemplate>


    <!-- Property grid template -->
    <DataTemplate DataType="{x:Type c:VModellXTPropertyGridViewModel}">
        <view:PropertyWindowControl x:Name="PropertyWindow"/>
    </DataTemplate>

    <!-- Error list template -->
    <DataTemplate DataType="{x:Type c:VModellXTErrorListViewModel}">
        <view:ErrorListControl x:Name="ErrorList"/>
    </DataTemplate>

	<!-- Depenendencies list template -->
    <DataTemplate DataType="{x:Type c:VModellXTDependenciesViewModel}">
        <view:DependenciesControl x:Name="DependenciesList"/>
    </DataTemplate>	

	<!-- Search template -->
    <DataTemplate DataType="{x:Type c:VModellXTSearchViewModel}">
        <view:SearchWindowControl x:Name="SearchViewWnd"/>
    </DataTemplate>	
	
	<!-- Search result template -->
    <DataTemplate DataType="{x:Type c:VModellXTSearchResultViewModel}">
        <view:SearchResultControl x:Name="SearchResultCtrl"/>
    </DataTemplate>	
	
	<!-- Diagram view models data templates -->
	<DataTemplate DataType="{x:Type c:VModellXTDesignerDiagramSurfaceViewModel}">
	    <ScrollViewer x:Name="_tv_scrollviewer_" Background="White" Focusable="false" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
    	    <diagrams:DiagramDesigner HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" 
                                      ContextMenuOptions="{Binding Path=MenuOptions, Mode=OneWay}">
				<diagrams:DiagramDesigner.ContextMenu>
					<ContextMenu ItemContainerStyleSelector="{StaticResource ContextMenuItemStyleSelector}"/>
				</diagrams:DiagramDesigner.ContextMenu>
				<inter:Interaction.Behaviors>
                    <beh:FrameworkElementContextMenuBehavior/>
                </inter:Interaction.Behaviors>
			</diagrams:DiagramDesigner>
        </ScrollViewer>
    </DataTemplate>	
	<DataTemplate DataType="{x:Type c:VModellXTGeneralGrDependencyTemplateSurfaceViewModel}">
		<dependencies:GraphDependenciesViewControl/>
    </DataTemplate>	
	<DataTemplate DataType="{x:Type c:VModellXTRolleDependencyTemplateSurfaceViewModel}">
		<dependencies:SpecificDependenciesViewControl/>
    </DataTemplate>	

    <!-- RolleDependencyShape template -->
    <DataTemplate DataType="{x:Type c:RolleDependencyShapeDiagramItemViewModel}">
        <Grid>
            <Border Name="Bd" Margin="0" BorderThickness="1" Padding="0" SnapsToDevicePixels="True"  CornerRadius="1"
					Background="White" BorderBrush="Maroon"
					IsHitTestVisible="True" Focusable="True">
                <Border.Effect>
                    <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="White"/>
                </Border.Effect>
                <TextBlock Margin="3" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=DomainElementName}" ToolTip="{Binding Path=DomainElementName}" TextTrimming="CharacterEllipsis"/>
            </Border>
        </Grid>
    </DataTemplate>
	<DataTemplate DataType="{x:Type c:VModellXTDisziplinGrDependencyTemplateSurfaceViewModel}">
		<dependencies:SpecificDependenciesViewControl/>
    </DataTemplate>	

    <!-- DisziplinDependencyShape template -->
    <DataTemplate DataType="{x:Type c:DisziplinDependencyShapeDiagramItemViewModel}">
        <Grid>
            <Border Name="Bd" Margin="0" BorderThickness="1" Padding="0" SnapsToDevicePixels="True"  CornerRadius="1"
					Background="White" BorderBrush="Black"
					IsHitTestVisible="True" Focusable="True">
                <Border.Effect>
                    <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="White"/>
                </Border.Effect>
                <TextBlock Margin="3" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=DomainElementName}" ToolTip="{Binding Path=DomainElementName}" TextTrimming="CharacterEllipsis"/>
            </Border>
        </Grid>
    </DataTemplate>
	<DataTemplate DataType="{x:Type c:VModellXTErzAbhGrDependencyTemplateSurfaceViewModel}">
		<dependencies:SpecificDependenciesViewControl/>
    </DataTemplate>	

    <!-- ErzAbhDependencyShape template -->
    <DataTemplate DataType="{x:Type c:ErzAbhDependencyShapeDiagramItemViewModel}">
        <Grid>
            <Border Name="Bd" Margin="0" BorderThickness="1" Padding="0" SnapsToDevicePixels="True"  CornerRadius="1"
					Background="White" BorderBrush="Black"
					IsHitTestVisible="True" Focusable="True">
                <Border.Effect>
                    <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="White"/>
                </Border.Effect>
                <TextBlock Margin="3" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=DomainElementName}" ToolTip="{Binding Path=DomainElementName}" TextTrimming="CharacterEllipsis"/>
            </Border>
        </Grid>
    </DataTemplate>
	<DataTemplate DataType="{x:Type c:VModellXTDesignerDiagramMustertexteSurfaceViewModel}">
	    <ScrollViewer x:Name="_tv_scrollviewer_" Background="White" Focusable="false" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
    	    <diagrams:DiagramDesigner HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" 
                                      ContextMenuOptions="{Binding Path=MenuOptions, Mode=OneWay}">
				<diagrams:DiagramDesigner.ContextMenu>
					<ContextMenu ItemContainerStyleSelector="{StaticResource ContextMenuItemStyleSelector}"/>
				</diagrams:DiagramDesigner.ContextMenu>
				<inter:Interaction.Behaviors>
                    <beh:FrameworkElementContextMenuBehavior/>
                </inter:Interaction.Behaviors>
			</diagrams:DiagramDesigner>
        </ScrollViewer>
    </DataTemplate>	
	<DataTemplate DataType="{x:Type c:VModellXTDesignerDiagramVariantenkonfigSurfaceViewModel}">
	    <ScrollViewer x:Name="_tv_scrollviewer_" Background="White" Focusable="false" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
    	    <diagrams:DiagramDesigner HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="White" 
                                      ContextMenuOptions="{Binding Path=MenuOptions, Mode=OneWay}">
				<diagrams:DiagramDesigner.ContextMenu>
					<ContextMenu ItemContainerStyleSelector="{StaticResource ContextMenuItemStyleSelector}"/>
				</diagrams:DiagramDesigner.ContextMenu>
				<inter:Interaction.Behaviors>
                    <beh:FrameworkElementContextMenuBehavior/>
                </inter:Interaction.Behaviors>
			</diagrams:DiagramDesigner>
        </ScrollViewer>
    </DataTemplate>	
</ResourceDictionary>
